<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CountryList.aspx.vb" Inherits="MIMS_WRS.Web.CountryList"%>
<%@ Register TagPrefix="cc" Namespace="MyFramework.Web.UI.WebControls" Assembly="MyFramework.Web" %>
<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../UserControls/Pager.ascx" %>

<cc:masterpage runat="server" templatefile="~/Offices/Settings/SettingMasterPage.ascx" id="Masterpage1">
	<cc:contentregion id="crContent" runat="server">
		<A href="CountryDetail.aspx">Add new country</A>
		<cc:repeater id="rptList" runat="server">
			<headertemplate>
				<table class="List">
					<thead>
						<tr>
							<td>Country code</td>
							<td>
								Country name</td>		
							<td>
							Max Goods Weight for Road Limits (kg)</td>		
							<td>
							Meas. Unit</td>			
							<td>
							Show on IDS cart</td>					
						</tr>
					</thead>
					<tbody>
			</headertemplate>
			<itemtemplate>
				<tr class="ItemRow">
					<td><a href='CountryDetail.aspx?countryid=<%# DataBinder.Eval(Container.DataItem, "CountryID")%>'><%# DataBinder.Eval(Container.DataItem, "CountryCode")%></a></td>					
					<td><%# DataBinder.Eval(Container.DataItem, "CountryName")%></td>
					<td><%# GetRoadWeight(DataBinder.Eval(Container.DataItem, "RoadWeight")) %></td>
					<td><%# DataBinder.Eval(Container.DataItem, "MeasUnit")%></td>
					<td><%# GetCheckText(DataBinder.Eval(Container.DataItem, "IsShowOnIDSCart")) %></td>
				</tr>
			</itemtemplate>
			<NoneTemplate>
				<tr>
					<td colspan="2">
						There is no items.
					</td>
				</tr>
			</NoneTemplate>
			<AlternatingItemTemplate>
				<tr class="AlternateItemRow">
					<td><a href='CountryDetail.aspx?countryid=<%# DataBinder.Eval(Container.DataItem, "CountryID")%>'><%# DataBinder.Eval(Container.DataItem, "CountryCode")%></a></td>					
					<td><%# DataBinder.Eval(Container.DataItem, "CountryName")%></td>
					<td><%# GetRoadWeight(DataBinder.Eval(Container.DataItem, "RoadWeight")) %></td>
					<td><%# DataBinder.Eval(Container.DataItem, "MeasUnit") %></td>
					<td><%# GetCheckText(DataBinder.Eval(Container.DataItem, "IsShowOnIDSCart")) %></td>
				</tr>
			</AlternatingItemTemplate>
			<footertemplate>
		</tbody>
		</table>
		</footertemplate>
		</cc:repeater>
		<DIV id="pager">
			<uc1:Pager id="ucPager" runat="server"></uc1:Pager></DIV>
	</cc:contentregion>
	<cc:contentregion id="pageTitle" runat="server">Country List 
</cc:contentregion>
</cc:masterpage>

